#include <bits/stdc++.h>
using namespace std;

int main() {
    int n, x, tmp, left = 0, right = 0;
    cin >> n;
    while(n--){
        cin >> x >> tmp;
        if(x > 0) ++right;
        else if(x < 0) ++left;
    }
    cout << ((right <= 1 || left <= 1) ? "Yes" : "No") << endl;
    return 0;
}